﻿using System.Web;
using System.Web.Optimization;

namespace EM.OA.Portal
{
    public class BundleConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));

            //Scripts
            //保证加载带min的js
            //BundleTable.EnableOptimizations = true;
            bundles.Add(new ScriptBundle("~/globalScript").Include(
                        "~/Scripts/globalScript.js",
                        "~/Scripts/datapattern.js", 
                        "~/Scripts/locale/easyui-lang-zh_CN.js",
                        //"~/Scripts/jquery-1.8.0.min.js",
                        "~/Scripts/easyloader.js"//easyUI
                        //"~/Scripts/jquery.easyui.min.js"
                        ));

            //easyUI　Styles
            bundles.Add(new StyleBundle("~/easyUI/css").Include("~/Content/themes/icon.css"));
            bundles.Add(new StyleBundle("~/easyUI/default/css").Include(
                        "~/Content/themes/default/easyui.css"
                ));
        }
    }
}